package com.graduation.rescuematerial.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.graduation.rescuematerial.pojo.UserAction;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author CaiShuangLian
 * @since 2022-04-13
 */
@Mapper
public interface UserActionMapper extends BaseMapper<UserAction> {

    /**
     * 添加用户对应的权限
     * @param userAction
     * @return
     */
    Integer addUserAction(UserAction userAction);

    //修改用户权限
    int updateOrgUserAction(@Param("companyName") String companyName,@Param("phone") Long phone, @Param("action") String action);

    //修改部门用户的权限
    int updateUserAction(@Param("phone") Long phone, @Param("action") String action);
}
